package com.chinasoftware.civilaviation;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.password.NoOpPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

@tk.mybatis.spring.annotation.MapperScan(basePackages = "com.chinasoftware.civilaviation.mapper")
@SpringBootApplication
public class CivilaviationApplication {

    @SuppressWarnings("deprecation")
    @Bean()
    public PasswordEncoder passwordEncoder() {
        return NoOpPasswordEncoder.getInstance();
    }

    public static void main(String[] args) {
        SpringApplication.run(CivilaviationApplication.class, args);
    }

}
